#include<iostream>

using namespace std;

int suqare_n(int num, int n = 2);

int main(void)
{
	int val;

	cin >> val;

	cout << val << "的n次方" << suqare_n(val) << endl;
	cout << val << "的n次方" << suqare_n(val, 3) << endl;

	return 0;
}

int suqare_n(int num, int n)
{
	int res = 1;
	while (n > 0){
		res *= num;
		n--;
	}
	return res;
}
